// 导入二次封装axios
import koi from "@/utils/axios.ts";


export const listPage = (params: any) => koi.get("/admin/freight/freight/list", params);
export const read = (id: any) => koi.get("/admin/freight/freight/read", {id});
export const add = (params: any) => koi.post("/admin/freight/freight/add", params);
export const update = (params: any) => koi.post("/admin/freight/freight/update", params);
export const changeStatus = (id: any, status: any) => koi.post("/admin/freight/freight/changeStatus", { id, status });
export const getAll = () => koi.post("/admin/freight/freight/getAll");
